<template>
    <!-- 动态评价历史 -->
    <div class="e-table">
        <el-table
            :data="auditHistoryTable"
            ref="table"
            class="table"
            v-sortTable="{
                tableData: auditHistoryTable,
                _this: this,
                ref: 'table'
            }"
            border
            style="width: 100%"
        >
            <el-table-column
                type="index"
                width="55"
                label="序号"
            ></el-table-column>
            <el-table-column show-overflow-tooltip prop="unitName" label="年度">
                {{ auditHistoryTable.orgName }}
            </el-table-column>
            <el-table-column
                show-overflow-tooltip
                prop="assignUser"
                label="动态总得分"
                width="120"
            >
                {{ auditHistoryTable.billDate }}
            </el-table-column>
            <el-table-column
                show-overflow-tooltip
                prop="userTitle"
                label="动态评价总次数"
                width="150"
            >
                {{ auditHistoryTable.evaluate }}
            </el-table-column>
            <el-table-column
                show-overflow-tooltip
                prop="notifyTime"
                label="动态评价平均分数"
                width="150"
            >
                {{ auditHistoryTable.starDate }}
            </el-table-column>
            <el-table-column
                show-overflow-tooltip
                prop="completeTime"
                label="动态评价平均星级"
                width="150"
            >
                {{ auditHistoryTable.endDate }}
            </el-table-column>
            <!-- <el-table-column
                show-overflow-tooltip
                prop="opinion"
                label="评价来源"
                width="250"
            >
                {{ auditHistoryTable.type }}
            </el-table-column> -->
        </el-table>
    </div>
</template>

<script>
import { getEvaluateList } from '@/api/OutsourcingartyAdmin/subcontractorAdmin/subcontractor.js'
export default {
    props: {
        billId: {
            type: String,
            default: '',
            require: true
        }
        // auditHistoryTable: {
        //     type: Array,
        //     require: true
        // }
    },
    data () {
        return {
            auditHistoryTable: [] //列表数据
        }
    },
    created () {
        // 初始化列表
        this.getList()
    },
    methods: {
        // 列表查询
        async getList () {
            let data = await getEvaluateList({ id: this.billId })
            this.auditHistoryTable = data
        }
    }
}
</script>

<style lang="sass" scoped></style>
